﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace YammerWM6
{
    static class TestRunner
    {
        public static void RunTests()
        {
            int tests = 0;
            int passed = 0;

            Action<Func<bool>> runTest = test =>
                {
                    tests++;
                    passed += test() ? 1 : 0;
                };

            runTest(TestImplimentations.YammerMessageAPI.RunTest);

            MessageBox.Show(string.Format("{0} out of {1} passed",passed,tests));
        }
    }
}
